package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;

import com.ruoyi.system.api.domain.AipptOutline;
import com.ruoyi.system.api.factory.RemoteAiModelFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * ai服务
 *
 * @author lcj
 */
@FeignClient(contextId = "remoteAiModelService", value = ServiceNameConstants.AIMODEL_SERVICE, fallbackFactory = RemoteAiModelFallbackFactory.class)
public interface RemoteAiModelService {

    /**
     * 非流式响应数据
     *
     * @param message 消息
     * @return 结果
     */
    @GetMapping("/api/chat")
    public String chat(@RequestParam("message") String message, @RequestParam("userid") String userid);
    @PostMapping("/api/chatPost")
    public String chatPost(@Valid @RequestBody AipptOutline aipptOutline);

}
